'use strict'

/**
 * <--    还原前    -->
`var a = 123;


var b = 456;

`
 * 
 * <--    特征    -->
 * 无
 * 
 * <--    解决办法    -->
 * generator opts修改配置
 * 
 * <--    冗余判断    -->
 * 无
 * 
 * <--    还原后    -->
`var a = 123;
var b = 456;`
 * 
 **/

const {parse} = require('@babel/parser');
const traverse = require('@babel/traverse').default;
const t = require('@babel/types');
const generator = require('@babel/generator').default;

let xcode = `var a = 123;


var b = 456;

`

let ast = parse(xcode);
let {code} = generator(ast, {retainLines: false});

console.log(code);
